﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data.Entity;
using IBLL;
using BLLImp;
using PageEntity;

namespace OASystem.Controllers
{
    public class HomeController : BaseController
    {
        IModuleServer moduleserver;
        public HomeController()
        {
            moduleserver = new ModuleServer();

        }
        //
        // GET: /Home/

        public ActionResult Index()
        {
            SetTheme();
            ViewBag.LeftMenu = moduleserver.LoadLeftMenu();
            return View();
        }
        public ActionResult GetLeftLinks()
        {
            ViewBag.LeftMenu = moduleserver.LoadLeftMenu();
            return PartialView("_LayoutWest");
        }

    }
}
